home *** CD-ROM | disk | FTP | other *** search
Text File | 1991-03-06 | 1.1 KB | 30 lines | [TEXT/GEOL] |
- Item 8975744 15-Feb-90 09:20PST
-
- From: PASCOE1 Pascoe, Geoff
-
- To: MACAPP.TECH$ MacApp Technical
-
- Sub: Re: Re: Data Dilemma
-
- Jeff and Bob,
-
- I agree that separating Model from View/Contoller (as Smalltalkers call it) is
- VERY desireable. However, its important not to get TOO dogmatic about this.
- Sometimes combining the model (Document) with the view leads to a cleaner
- structure. It sounds like Bob's problem might (and I emphasize "might") be an
- appropriate case.
-
- My advice is to carefully consider the implications of combining model and
- view. If it appears natural and does not cause other, more serious problems,
- go for it.
-
- Incidentally, MacApp is an example of such a compromise. Normally, in a
- Smalltalk world, the model does not have any reference to it's view. This is
- because any model may have multiple ways to be viewed and manipulated (at the
- same time). In MacApp, however, Documents reference their Views. This is
- appropriate when put in the context of what MacApp is trying to accomplish and
- it's overall design.
-
- Geoff
-
-